<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>我的Android学习之旅[1]——Android的系统架构 - royen - 博客园</title>
<link type="text/css" rel="stylesheet" href="/bundles/blog-common.css?v=gdNkSiQMyBMkpTeO1ex9qW-60UbMszQItnCUpBAT3LQ1"/>
<link id="MainCss" type="text/css" rel="stylesheet" href="http://common.cnblogs.com/Skins/SimpleBlue/style.css?id=20140110"/>
<link title="RSS" type="application/rss+xml" rel="alternate" href="http://www.cnblogs.com/royenhome/rss"/>
<link title="RSD" type="application/rsd+xml" rel="EditURI" href="http://www.cnblogs.com/royenhome/rsd.xml"/>
<link type="application/wlwmanifest+xml" rel="wlwmanifest" href="http://www.cnblogs.com/royenhome/wlwmanifest.xml"/>
<script src="http://common.cnblogs.com/script/jquery.js" type="text/javascript"></script>  
<script type="text/javascript">var currentBlogApp = 'royenhome', cb_enable_mathjax=false;</script>
<script src="/bundles/blog-common.js?v=VS7ve6HfGvxtuwYyB4SWqTrYP6ZukEwxrePhJmRhqZc1" type="text/javascript"></script>
</head>
<body>
<a name="top"></a>

<div id="home">
<div id="header">
	<div id="blogTitle">
		
<!--done-->
<div class="title"><a id="Header1_HeaderTitle" class="headermaintitle" href="http://www.cnblogs.com/royenhome/">一万小时定律</a></div>
<div class="subtitle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size = "3px">永不凋零的梦想</font></div>



		
	</div><!--end: blogTitle 博客的标题和副标题 -->
	<div id="navigator">
		
<ul id="navList">
<li id="nav_sitehome"><a id="MyLinks1_HomeLink" class="menu" href="http://www.cnblogs.com/">博客园</a></li>
<li id="nav_myhome"><a id="MyLinks1_MyHomeLink" class="menu" href="http://www.cnblogs.com/royenhome/">首页</a></li>
<li id="nav_q"><a class="menu" href="http://q.cnblogs.com/">博问</a></li>
<li id="nav_ing"><a class="menu" href="http://home.cnblogs.com/ing/">闪存</a></li>
<li id="nav_newpost"><a id="MyLinks1_NewPostLink" class="menu" rel="nofollow" href="http://www.cnblogs.com/royenhome/admin/EditPosts.aspx?opt=1">新随笔</a></li>
<li id="nav_contact"><a id="MyLinks1_ContactLink" class="menu" rel="nofollow" href="http://space.cnblogs.com/msg/send/royen">联系</a></li>
<li id="nav_rss"><a id="MyLinks1_Syndication" class="menu" href="http://www.cnblogs.com/royenhome/rss">订阅</a>
<!--<a id="MyLinks1_XMLLink" class="aHeaderXML" href="http://www.cnblogs.com/royenhome/rss"><img src="http://www.cnblogs.com/images/xml.gif" alt="订阅" /></a>--></li>
<li id="nav_admin"><a id="MyLinks1_Admin" class="menu" rel="nofollow" href="http://www.cnblogs.com/royenhome/admin/EditPosts.aspx">管理</a></li>
</ul>

		<div class="blogStats">
			
			
<!--done-->
随笔-70&nbsp;
文章-1&nbsp;
评论-287&nbsp;

			
		</div><!--end: blogStats -->
	</div><!--end: navigator 博客导航栏 -->
</div><!--end: header 头部 -->
<div id="main">
	<div id="mainContent">
	<div class="forFlow">
		

<!--done-->
<div id="topics">
	<div class = "post">
		<h1 class = "postTitle">
			<a id="cb_post_title_url" class="postTitle2" href="http://www.cnblogs.com/royenhome/archive/2010/04/24/1719293.html">我的Android学习之旅[1]——Android的系统架构</a>
		</h1>
		<div class="clear"></div>
		<div class="postBody">
			<div id="cnblogs_post_body"><p>&nbsp;&nbsp; &nbsp;&#8212;&#8212;<span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><strong>不积跬步，无以至千里;不积小流，无以成江海</strong></span></p><p>&nbsp;&nbsp; &nbsp;虽然园子里关于Android系统架构的文章已经很多了，但是作为自己学习Android的心路历程，记录下来是必要的，老鸟就速度飞过吧~</p><p>&nbsp;&nbsp; &nbsp;如果说一个成功男人的背后会有一个默默支持的女人的话，那么一个优越稳定的平台背后必有一个成熟的系统架构所支撑着。那么，Android的系统架构是怎么样的呢?从下图我们可以从整体上有个大致的了解（图片来源互联网）：</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<img src="http://images.cnblogs.com/cnblogs_com/royenhome/Android/%E6%88%91%E7%9A%84Android%E7%9A%84%E5%AD%A6%E4%B9%A0%E4%B9%8B%E6%97%85/Android%E7%9A%84%E7%B3%BB%E7%BB%9F%E6%9E%B6%E6%9E%84/Android%E7%B3%BB%E7%BB%9F%E6%9E%B6%E6%9E%84%E5%9B%BE.png" width="630" height="589" alt="" />&nbsp;</p><p>&nbsp;&nbsp; &nbsp;从上图中可以看出，Android系统架构为四层结构，从上层到下层分别是应用程序层、应用程序框架层、系统运行库层以及Linux内核层，分别介绍如下：</p><p>&nbsp;&nbsp; &nbsp;1）<strong>应用程序层</strong></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span lang="EN-US" style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast">Android</span><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast">平台不仅仅是操作系统，也包含了许多应用程序，诸如<span lang="EN-US">SMS</span>短信客户端程序、电话拨号程序、图片浏览器、<span lang="EN-US">Web</span>浏览器等应用程序。这些应用程序都是 </span><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast">&nbsp;&nbsp; &nbsp; &nbsp;用<span class="Apple-style-span" style="font-family: verdana, 'courier new'; "><span lang="EN-US">Java</span><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast">语言编写的，并且这些应用程序都是可以被开发人员开发的其他应用程序所替换，这点不同于其他手机操作系统固化在系统内部的系统软件，更加灵活和个 &nbsp; &nbsp;性化。</span></span></span></p><p class="MsoNormal" style="margin-left:21.0pt;mso-para-margin-left:2.0gd;
text-indent:15.75pt;mso-char-indent-count:1.5"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp;2）<strong>应用程序框架层</strong></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">应用程序框架层是我们从事<span lang="EN-US">Android</span>开发的基础，很多核心应用程序也是通过这一层来实现其核心功能的，该层简化了组件的重用，开发人员可以直接使用其提 &nbsp; &nbsp;供的组件来进行快速的应用程序开发，也可以通过继承而实现个性化的拓展。</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; a）<span lang="EN-US" style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast;
mso-bidi-font-family:宋体;mso-bidi-theme-font:minor-fareast"><span style="mso-list:Ignore"><span style="font: normal normal normal 7pt/normal 'Times New Roman'; color: #333399; ">&nbsp;</span></span></span><span lang="EN-US" style="font-family: 宋体; color: #333399; ">Activity Manager</span><span style="font-family: 宋体; color: #333399; ">（活动管理器）</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">管理各个应用程序生命周期以及通常的导航回退功能</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; b）<span lang="EN-US" style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast;
mso-bidi-font-family:宋体;mso-bidi-theme-font:minor-fareast"><span style="mso-list:Ignore"><span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;</span></span></span><span lang="EN-US" style="font-family: 宋体; color: #333399; ">Window Manager</span><span style="font-family: 宋体; color: #333399; ">（窗口管理器）</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;管理所有的窗口程序</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; c）<span lang="EN-US" style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast;
mso-bidi-font-family:宋体;mso-bidi-theme-font:minor-fareast"><span style="mso-list:Ignore"><span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;</span></span></span><span lang="EN-US" style="font-family: 宋体; color: #333399; ">Content Provider</span><span style="font-family: 宋体; color: #333399; ">（内容提供器）</span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;使得不同应用程序之间存取或者分享数据</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; d）<span lang="EN-US" style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast;
mso-bidi-font-family:宋体;mso-bidi-theme-font:minor-fareast"><span style="mso-list:Ignore"><span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;</span></span></span><span lang="EN-US" style="font-family: 宋体; color: #333399; ">View System</span><span style="font-family: 宋体; color: #333399; ">（视图系统）</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;构建应用程序的基本组件</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; e）<span lang="EN-US" style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast;
mso-bidi-font-family:宋体;mso-bidi-theme-font:minor-fareast"><span style="mso-list:Ignore"><span style="font: normal normal normal 7pt/normal 'Times New Roman'; color: #333399; ">&nbsp;</span></span></span><span lang="EN-US" style="font-family: 宋体; color: #333399; ">Notification Manager(</span><span style="font-family: 宋体; color: #333399; ">通告管理器<span lang="EN-US" style="color: #333399; ">)</span></span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;使得应用程序可以在状态栏中显示自定义的提示信息</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; f）<span class="Apple-style-span" style="font-family: 宋体; ">&nbsp;<span class="Apple-style-span" style="font-family: verdana, 'courier new'; "><span lang="EN-US" style="font-family: 宋体; color: #333399; ">Package Manager</span><span style="font-family: 宋体; color: #333399; ">（包管理器）</span>&nbsp;</span></span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span lang="EN-US" style="font-family:宋体;mso-ascii-theme-font:
minor-fareast;mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;
mso-hansi-theme-font:minor-fareast">Android</span><span style="font-family:
宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:宋体;mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-fareast">系统内的程序管理</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; g）<span lang="EN-US" style="font-family: 宋体; color: #333399; ">Telephony Manager(</span><span style="font-family: 宋体; color: #333399; ">电话管理器<span lang="EN-US" style="color: #333399; ">)</span></span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">管理所有的移动设备功能</span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:0cm;
mso-char-indent-count:0"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;
mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:
minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:0cm;
mso-char-indent-count:0"><span style="font-family:
宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:宋体;mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; h）<span lang="EN-US" style="font-family: 宋体; color: #333399; ">Resource Manager</span><span style="font-family: 宋体; color: #333399; ">（资源管理器）</span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">提供应用程序使用的各种非代码资源，如本地化字符串、图片、布局文件、颜色文件等</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; i）<span lang="EN-US" style="font-family: 宋体; color: #333399; ">Location Manager(</span><span style="font-family: 宋体; color: #333399; ">位置管理器<span lang="EN-US" style="color: #333399; ">)</span></span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">提供位置服务</span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:0cm;
mso-char-indent-count:0"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;
mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:
minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:0cm;
mso-char-indent-count:0"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;
mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:
minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; j）<span lang="EN-US" style="font-family: 宋体; color: #333399; ">XMPP Service</span><span style="font-family: 宋体; color: #333399; ">（<span lang="EN-US" style="color: #333399; ">XMPP</span></span><span style="font-family: 宋体; color: #333399; ">服务）</span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">提供<span lang="EN-US">Google Talk</span>服务<span class="Apple-style-span" style="font-family: verdana, 'courier new'; ">&nbsp;</span></span></p><p class="MsoListParagraph" style="margin-left:57.75pt;text-indent:0cm;
mso-char-indent-count:0"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;
mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:
minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp;</p><p>&nbsp;&nbsp; &nbsp;3）<strong>系统运行库层</strong></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">从图中可以看出，系统运行库层可以分成两部分，分别是系统库和<span lang="EN-US">Android</span>运行时，分别介绍如下：</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; a）<span style="color: #333399; ">系统库</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">系统库是应用程序框架的支撑，是连接应用程序框架层与<span lang="EN-US">Linux</span>内核层的重要纽带。其主要分为如下几个：</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"><span style="color: #ff6600; ">&#216;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span></span><span lang="EN-US" style="font-family: 宋体; color: #ff6600; ">Surface
Manager</span><span style="font-family: 宋体; color: #ff6600; ">：</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">执行多个应用程序时候，负责管理显示与存取操作间的互动，另外也负责<span lang="EN-US">2D</span>绘图与<span lang="EN-US">3D</span>绘图进行显示合成。<span class="Apple-style-span" style="font-family: verdana, 'courier new'; ">&nbsp;</span></span></p><p><span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"><span style="color: #ff6600; ">&nbsp;&nbsp; &nbsp; &#216;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span></span><span lang="EN-US" style="font-family: 宋体; color: #ff6600; ">Media
Framework</span><span style="font-family: 宋体; color: #ff6600; ">：</span>&nbsp;</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">多媒体库，基于<span lang="EN-US">PacketVideo
OpenCore;</span>支持多种常用的音频、视频格式录制和回放，编码格式包括<span lang="EN-US">MPEG4</span>、<span lang="EN-US">MP3</span>、<span lang="EN-US">H.264</span>、<span lang="EN-US">AAC</span>、<span lang="EN-US">ARM</span>。</span></p><p class="MsoNormal" style="margin-left:57.0pt;mso-para-margin-left:5.43gd;
text-indent:21.0pt;mso-char-indent-count:2.0"><span style="font-family:宋体;
mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:宋体;mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoListParagraph" style="margin-left:78.0pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;
mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:
minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"><span style="color: #ff6600; ">&#216;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span></span><span lang="EN-US" style="font-family: 宋体; color: #ff6600; ">SQLite:</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">小型的关系型数据库引擎<span class="Apple-style-span" style="font-family: verdana, 'courier new'; ">&nbsp;</span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"><span style="color: #ff6600; ">&#216;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span></span><span lang="EN-US" style="font-family: 宋体; color: #ff6600; ">OpenGL|ES</span><span style="font-family: 宋体; color: #ff6600; ">：</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">根据<span lang="EN-US">OpenGL ES 1.0API</span>标准实现的<span lang="EN-US">3D</span>绘图函数库<span class="Apple-style-span" style="font-family: verdana, 'courier new'; ">&nbsp;</span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"><span style="color: #ff6600; ">&#216;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span></span><span lang="EN-US" style="font-family: 宋体; color: #ff6600; ">FreeType</span><span style="font-family: 宋体; color: #ff6600; ">：</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">提供点阵字与向量字的描绘与显示<span class="Apple-style-span" style="font-family: verdana, 'courier new'; ">&nbsp;</span></span></p><p class="MsoListParagraph" style="margin-left:78.0pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"><span style="color: #ff6600; ">&#216;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span></span><span lang="EN-US" style="font-family: 宋体; color: #ff6600; ">WebKit</span><span style="font-family: 宋体; color: #ff6600; ">：</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">一套网页浏览器的软件引擎</span></p><p class="MsoListParagraph" style="margin-left:78.0pt;text-indent:0cm;mso-char-indent-count:
0"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoListParagraph" style="margin-left:78.0pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoListParagraph" style="margin-left:78.0pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"><span style="color: #ff6600; ">&#216;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span></span><span lang="EN-US" style="font-family: 宋体; color: #ff6600; ">SGL</span><span style="font-family: 宋体; color: #ff6600; ">：</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">底层的<span lang="EN-US">2D</span>图形渲染引擎<span class="Apple-style-span" style="font-family: verdana, 'courier new'; ">&nbsp;</span></span></p><p class="MsoListParagraph" style="margin-left:78.0pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"><span style="color: #ff6600; ">&#216;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span></span><span lang="EN-US" style="font-family: 宋体; color: #ff6600; ">SSL</span><span style="font-family: 宋体; color: #ff6600; ">：</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">在<span lang="EN-US">Andorid</span>上通信过程中实现握手&nbsp;<span class="Apple-style-span" style="font-family: verdana, 'courier new'; "><span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"></span></span></span></p><p><span style="mso-list:Ignore">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><font class="Apple-style-span" face="'Times New Roman'" size="3"><span class="Apple-style-span" style="font-size: 12px; line-height: normal;">&nbsp;<span class="Apple-style-span" style="font-family: verdana, 'courier new'; font-size: 14px; line-height: 21px; "><span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"><span style="color: #ff0000; ">&#216;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span></span><span lang="EN-US" style="font-family: 宋体; color: #ff0000; ">Libc</span><span style="font-family: 宋体; color: #ff0000; ">：</span></span></span></font></p><p class="MsoListParagraph" style="margin-left:78.0pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p>

<p><span class="Apple-style-span" style="font-family: 宋体; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 从</span><span class="Apple-style-span" style="font-family: 宋体; "><span lang="EN-US">BSD</span></span><span class="Apple-style-span" style="font-family: 宋体; ">继承来的标准<span lang="EN-US">C</span></span><span class="Apple-style-span" style="font-family: 宋体; ">系统函数库，专门为基于<span lang="EN-US">embedded linux</span></span><span class="Apple-style-span" style="font-family: 宋体; ">的设备定制</span></p><p>&nbsp;</p><p class="MsoListParagraph" style="margin-left:78.0pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span lang="EN-US" style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><o:p></o:p></span></p><p class="MsoNormal" style="margin-left:41.25pt;mso-para-margin-left:3.93gd;
text-indent:15.75pt;mso-char-indent-count:1.5"><span style="font-family:宋体;
mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:宋体;mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p><span style="color: #ff6600; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #000000; ">b）</span><span style="color: #333399; ">Android运行时</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span lang="EN-US" style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast">Android</span><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast">应用程序时采用<span lang="EN-US">Java</span>语言编写，程序在<span lang="EN-US">Android</span>运行时中执行，其运行时分为核心库和<span lang="EN-US">Dalvik</span>虚拟机两部分。</span></p><p class="MsoNormal" style="margin-left:59.25pt"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"><span style="mso-list:Ignore">&#216;<span style="font: normal normal normal 7pt/normal 'Times New Roman'; color: #ff0000; ">&nbsp; </span></span></span><span style="font-family: 宋体; color: #ff0000; ">核心库</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class="Apple-style-span" style="font-family: 宋体; ">核心库提供了<span lang="EN-US">Java</span>语言<span lang="EN-US">API</span>中的大多数功能，同时也包含了<span lang="EN-US">Android</span>的一些核心<span lang="EN-US">API,</span>如<span lang="EN-US">android.os</span>、<span lang="EN-US">android.net</span>、<span lang="EN-US">android.media</span>等等。</span></p><p class="MsoNormal" style="margin-left:57.0pt;mso-para-margin-left:5.43gd;
text-indent:21.0pt;mso-char-indent-count:2.0"><span style="font-family:宋体;
mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:宋体;mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span lang="EN-US" style="font-family:Wingdings;mso-fareast-font-family:Wingdings;
mso-bidi-font-family:Wingdings"><span style="mso-list:Ignore">&#216;<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp; </span></span></span><span lang="EN-US" style="font-family: 宋体; color: #ff0000; ">Dalvik</span><span style="font-family: 宋体; color: #ff0000; ">虚拟机</span></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span lang="EN-US" style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast">Android</span><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast">程序不同于<span lang="EN-US">J2me</span>程序，每个<span lang="EN-US">Android</span>应用程序都有一个专有的进程，并且不是多个程序运行在一个虚拟机中，而是每个<span lang="EN-US">Android</span>程序都有一 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;个<span lang="EN-US">Dalivik</span>虚拟机的实例，并在该实例中执行。<span lang="EN-US">Dalvik</span>虚拟机是一种基于寄存器的<span lang="EN-US">Java</span>虚拟机，而不是传统的基于栈的虚拟机，并进行了内存资源使用的优化 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;以及支持多个虚拟机的特点。需要注意的是，不同于<span lang="EN-US">J2me,Android</span>程序在虚拟机中执行的并非编译后的字节码，而是通过转换工具<span lang="EN-US">dx</span>将<span lang="EN-US">Java</span>字节码转成<span lang="EN-US">dex</span>格 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;式的中间码。</span></p><p>&nbsp;&nbsp;</p><p class="MsoNormal" style="margin-left:57.0pt;mso-para-margin-left:5.43gd;
text-indent:21.0pt;mso-char-indent-count:2.0"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoListParagraph" style="margin-left:78.0pt;text-indent:-21.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span style="font-family:宋体;mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:
宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p><span style="color: #ff6600; ">&nbsp;&nbsp; &nbsp;</span><span style="color: #000000; ">4）</span><strong style="color: #000000; ">Linux内核层&nbsp;</strong></p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-style-span" style="font-family: 宋体; "><span lang="EN-US">Android是基于</span><span lang="EN-US">Linux2.6</span>内核，其核心系统服务如安全性、内存管理、进程管理、网路协议以及驱动模型都依赖于Linux内核。</span></p><p class="MsoNormal" style="margin-left:21.0pt;mso-para-margin-left:2.0gd;
text-indent:15.75pt;mso-char-indent-count:1.5"><span style="font-family:宋体;
mso-ascii-theme-font:minor-fareast;mso-fareast-font-family:宋体;mso-fareast-theme-font:
minor-fareast;mso-hansi-theme-font:minor-fareast"><span lang="EN-US"><o:p></o:p></span></span></p><p>&nbsp;&nbsp; &nbsp;基本上通过以上的学习，在对Android系统架构有了一个大致的了解之后，我们也离开始Android的开发之旅更进一步了~</p></div><div id="MySignature"></div>
<div class="clear"></div>
<div id="blog_post_info_block">
<div id="blog_post_info">
</div>
<div class="clear"></div>
<div id="post_next_prev"></div>
</div>


		</div>
		<div class = "postDesc">posted @ <span id="post-date">2010-04-24 13:45</span> <a href='http://www.cnblogs.com/royenhome/'>royen</a> 阅读(<span id="post_view_count">...</span>) 评论(<span id="post_comment_count">...</span>)  <a href ="http://www.cnblogs.com/royenhome/admin/EditPosts.aspx?postid=1719293" rel="nofollow">编辑</a> <a href="#" onclick="AddToWz(1719293);return false;">收藏</a></div>
	</div>
	<script type="text/javascript">var allowComments=true,isLogined=false,cb_blogId=64404,cb_entryId=1719293,cb_blogApp=currentBlogApp,cb_blogUserGuid='b9dbdb1c-f8e9-de11-ba8f-001cf0cd104b',cb_entryCreatedDate='2010/4/24 13:45:00';loadViewCount(cb_entryId);</script>
	
</div><!--end: topics 文章、评论容器-->
<a name="!comments"></a><div id="blog-comments-placeholder"></div><script type="text/javascript">var commentManager = new blogCommentManager();commentManager.renderComments(0);</script>
<div id="comment_form" class="commentform">
<a name="commentform"></a>
<div id="divCommentShow"></div>
<div id="comment_nav"><span id="span_refresh_tips"></span><a href="javascript:void(0);" id="lnk_RefreshComments" onclick="return RefreshCommentList();">刷新评论</a><a href="#" onclick="return RefreshPage();">刷新页面</a><a href="#top">返回顶部</a></div>
<div id="comment_form_container"></div>
<div class="ad_text_commentbox" id="ad_text_under_commentbox"></div>
<div id="site_nav_under"><a href="http://www.cnblogs.com/" target="_blank" title="程序员的网上家园">博客园首页</a><a href="http://q.cnblogs.com/" target="_blank" title="程序员问答社区">博问</a><a href="http://news.cnblogs.com/" target="_blank" title="IT新闻">新闻</a><a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a><a href="http://job.cnblogs.com/" target="_blank">程序员招聘</a><a href="http://kb.cnblogs.com/" target="_blank">知识库</a></div>
<div id="ad_under_post_holder"></div>
<script type="text/javascript">
var enableGoogleAd = true;
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
fixPostBodyFormat();
loadAdUnderPost();
</script>
<div id="HistoryToday" class="c_ad_block"></div>
<script type="text/javascript">
loadBlogSignature();
LoadPostInfoBlock(cb_blogId, cb_entryId, cb_blogApp, cb_blogUserGuid);
GetPrevNextPost(cb_entryId, cb_blogId, cb_entryCreatedDate);
GetHistoryToday(cb_blogId, cb_blogApp, cb_entryCreatedDate);
</script>
<script type="text/javascript">
    $.ajax({ url: 'http://counter.cnblogs.com/blog/post/' + cb_entryId, type: 'get', dataType: 'script', cache: true });
</script>
</div>

	</div><!--end: forFlow -->
	</div><!--end: mainContent 主体内容容器-->

	<div id="sideBar">
		<div id="sideBarMain">
			
<!--done-->
<div class="newsItem">
<h3 class="catListTitle">公告</h3>
	<div id="blog-news"></div><script type="text/javascript">loadBlogNews();</script>
</div>

			<div id="calendar"><div id="blog-calendar" style="display:none"></div><script type="text/javascript">loadBlogDefaultCalendar();</script></div>
			
			<div id="leftcontentcontainer">
				<div id="blog-sidecolumn"></div><script type="text/javascript">loadBlogSideColumn();</script>
			</div>
			
		</div><!--end: sideBarMain -->
	</div><!--end: sideBar 侧边栏容器 -->
	<div class="clear"></div>
	</div><!--end: main -->
	<div class="clear"></div>
	<div id="footer">
		
<!--done-->
Copyright &copy;2014 royen
	</div><!--end: footer -->
</div><!--end: home 自定义的最大容器 -->
</body>
</html>
